PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-22 10:12:12.758261+00:00 (UTC)
In US/Central Time, this is 2024-03-22 05:12:12.758261-05:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../../_images/70b0d9809ab7cd2b6f893143cd01c1fa7d2ef34b98162cbb5592ed3a79589e5a.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../../_images/a924c4fc6aabc65d988dcc81662f36cd54839cb933629eb7fb3fa4c44ce3a5dd.png
fig = px.line(vix)
fig.show()
../../_images/fa14b8c98de85df122a8ee0424f277e929419156231a4c7091d2837ab01a78a7.png